package com.woniuxy.service.Impl;

import com.woniuxy.entity.LoanUserInfo;
import com.woniuxy.dao.LoanUserInfoDao;
import com.woniuxy.service.ILoanUserInfoService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description: TODO 用户信息实现类
 * @author jx
 * @date 2022/9/19 14:27
 * @version 1.0
 */
@Service
@MapperScan("com.woniuxy.dao")
public class LoanUserInfoServiceImpl implements ILoanUserInfoService {

    @Autowired
    LoanUserInfoDao loanUserInfoMapper;
     //补全用户信息
    @Override
    public int insertUserInfo(LoanUserInfo loanUserInfo) {

        return loanUserInfoMapper.insertUserInfo(loanUserInfo);
    }
    //查询
    @Override
    public List<LoanUserInfo> selectLoanUserInfoList(LoanUserInfo loanUserInfo) {
        return loanUserInfoMapper.selectLoanUserInfoList(loanUserInfo);
    }

    //删除
    @Override
    public int deleteUserInfoById(int id) {
        return loanUserInfoMapper.deleteUserInfoById(id);
    }

    @Override
    public int updateLoanUserInfo(LoanUserInfo loanUserInfo) {
        return loanUserInfoMapper.updateLoanUserInfo(loanUserInfo);
    }

    //修改

}
